package com.test.rabbitmq.service;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "test")
public class RecevieMessage {

    @RabbitHandler
    public void process(String str) {
        System.out.println("RecevieMessage 接收到消息内容： " + str);
    }

}
